import cocos
import sys
import os
from gamelayers import BackgroundLayer, PresentationLayer, CloudsLayer
from cocos.scene import Scene

sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))

GAME_TITLE = 'Gaston the Janitor vs The Birds'

def main():
    # director init takes the same arguments as pyglet.window
    cocos.director.director.init(width=800, height=600, caption=GAME_TITLE)
    presentation_scene = Scene(CloudsLayer(), PresentationLayer())
    cocos.director.director.show_FPS = True
    cocos.director.director.run(presentation_scene)